home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / blox.swf / scripts / frame_3 / PlaceObject2_516_765 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  486 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.level_complete_mode)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(_root.Time > 1)
  7.    {
  8.       if(_root.Time >= 8)
  9.       {
  10.          _root.Time -= 8;
  11.          _root.SoundBonusCount.start();
  12.          _root.TimeRound = Math.Round(_root.Time / 10) * 10;
  13.          _root.Score += 8;
  14.          _root.LevelScore = _root.Score - _root.LastScore;
  15.       }
  16.       else
  17.       {
  18.          _root.Time = 0;
  19.          _root.TimeRound = 0;
  20.       }
  21.    }
  22. }
  23.